package com.hpeng.sys.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

//资产状态实体
@Entity
@Table(name = "PROD_STATUS_MST")
public class ProdStatusMst {
	private String statustype;
	private String statuscode;
	private String statusdesc;
	private String subcode;
	private String subdesc;
	private String seq;
	private String status;
	private Date createdate;
	private String createby;
	private Date upddate;
	private String updby;
	
	private ProdStatusMst() {

	}
	@Column(name="STATUS_TYPE")
	public String getStatustype() {
		return statustype;
	}

	public void setStatustype(String statustype) {
		this.statustype = statustype;
	}
	
	@Column(name="STATUS_CODE")
	public String getStatuscode() {
		return statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}
	@Column(name="STATUS_DESC")
	public String getStatusdesc() {
		return statusdesc;
	}

	public void setStatusdesc(String statusdesc) {
		this.statusdesc = statusdesc;
	}
	@Column(name="SUB_CODE")
	public String getSubcode() {
		return subcode;
	}

	public void setSubcode(String subcode) {
		this.subcode = subcode;
	}
	@Column(name="SUB_DESC")
	public String getSubdesc() {
		return subdesc;
	}
	
	public void setSubdesc(String subdesc) {
		this.subdesc = subdesc;
	}
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name="generator",strategy="assigned")  //主键生成策略  用户自定义id
	@Column(name="SEQ")
	public String getSeq() {
		return seq;
	}

	public void setSeq(String seq) {
		this.seq = seq;
	}
	@Column(name="STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="CREATE_DATE")
	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	@Column(name="CREATE_BY")
	public String getCreateby() {
		return createby;
	}

	public void setCreateby(String createby) {
		this.createby = createby;
	}
	@Column(name="UPD_DATE")
	public Date getUpddate() {
		return upddate;
	}

	public void setUpddate(Date upddate) {
		this.upddate = upddate;
	}
	@Column(name="UPD_BY")
	public String getUpdby() {
		return updby;
	}

	public void setUpdby(String updby) {
		this.updby = updby;
	}
}
